home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / ColorSync 2.1.2 GM / Interfaces / PInterfaces / CMAcceleration.p next >
Encoding:
Text File  |  1997-02-18  |  3.8 KB  |  118 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMAcceleration.p
  3.  
  4.      Contains:    ColorSync 2.0 Acceleration Component Interfaces
  5.  
  6.      Version:    ColorSync 2.1
  7.  
  8.      Copyright:    © 1984-1996 by Apple Computer, Inc.
  9.                  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CMAcceleration;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CMACCELERATION__}
  28. {$SETC __CMACCELERATION__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CMAccelerationIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MEMORY__}
  35. {$I Memory.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __COMPONENTS__}
  38. {$I Components.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __CMAPPLICATION__}
  41. {$I CMApplication.p}
  42. {$ENDC}
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48. {  –––––––––––––––––––––––––––––––––––––– version info  }
  49.  
  50. CONST
  51.     cmAccelerationInterfaceVersion = 1;
  52. {  –––––––––––––––––––––––––––––––––––––– Component Type  }
  53.     cmAccelerationComponentType    = 'csac';
  54. {  –––––––––––––––––––––––––––––––––––––– Required Component function selectors  }
  55.     cmLoadTables                = 0;
  56.     cmCalculateData                = 1;
  57. {  –––––––––––––––––––––––––––––––––––––– table data for acceleration component  }
  58.  
  59. TYPE
  60.     CMAccelerationTableDataPtr = ^CMAccelerationTableData;
  61.     CMAccelerationTableData = RECORD
  62.         inputLutEntryCount:        LONGINT;                                {  count of entries for input lut for one dimension }
  63.         inputLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 16 for WORD ) }
  64.         inputLut:                Handle;                                    {  handle to input lut }
  65.         outputLutEntryCount:    LONGINT;                                {  count of entries for output lut for one dimension     }
  66.         outputLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 8 for BYTE ) }
  67.         outputLut:                Handle;                                    {  handle to output lut }
  68.         colorLutInDim:            LONGINT;                                {  input dimension  ( e.g. 3 for LAB ; 4 for CMYK ) }
  69.         colorLutOutDim:            LONGINT;                                {  output dimension ( e.g. 3 for LAB ; 4 for CMYK ) }
  70.         colorLutGridPoints:        LONGINT;                                {  count of gridpoints for color lut ( for one Dimension )     }
  71.         colorLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 8 for BYTE ) }
  72.         colorLut:                Handle;                                    {  handle to color lut }
  73.         inputColorSpace:        CMBitmapColorSpace;                        {  packing info for input }
  74.         outputColorSpace:        CMBitmapColorSpace;                        {  packing info for output }
  75.         userData:                Ptr;
  76.         reserved1:                LONGINT;
  77.         reserved2:                LONGINT;
  78.         reserved3:                LONGINT;
  79.         reserved4:                LONGINT;
  80.         reserved5:                LONGINT;
  81.     END;
  82.  
  83.     CMAccelerationTableDataHdl            = ^CMAccelerationTableDataPtr;
  84. {  –––––––––––––––––––––––––––––––––––––– calc data for acceleration component  }
  85.     CMAccelerationCalcDataPtr = ^CMAccelerationCalcData;
  86.     CMAccelerationCalcData = RECORD
  87.         pixelCount:                LONGINT;                                {  count of input pixels }
  88.         inputData:                Ptr;                                    {  input array }
  89.         outputData:                Ptr;                                    {  output array }
  90.         reserved1:                LONGINT;
  91.         reserved2:                LONGINT;
  92.     END;
  93.  
  94.     CMAccelerationCalcDataHdl            = ^CMAccelerationCalcDataPtr;
  95. {
  96.  ———————————————————————————————————————————————————————————————————————————————————————————————— 
  97.                 A c c e l e r a t i o n   C o m p o n e n t   I n t e r f a c e s
  98.  ———————————————————————————————————————————————————————————————————————————————————————————————— 
  99. }
  100. FUNCTION CMAccelerationLoadTables(CMSession: ComponentInstance; tableData: CMAccelerationTableDataPtr): CMError;
  101.     {$IFC NOT GENERATINGCFM}
  102.     INLINE $2F3C, $0004, $0000, $7000, $A82A;
  103.     {$ENDC}
  104. FUNCTION CMAccelerationCalculateData(CMSession: ComponentInstance; calcData: CMAccelerationCalcDataPtr): CMError;
  105.     {$IFC NOT GENERATINGCFM}
  106.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  107.     {$ENDC}
  108. {$ALIGN RESET}
  109. {$POP}
  110.  
  111. {$SETC UsingIncludes := CMAccelerationIncludes}
  112.  
  113. {$ENDC} {__CMACCELERATION__}
  114.  
  115. {$IFC NOT UsingIncludes}
  116.  END.
  117. {$ENDC}
  118.